package utils;

import java.io.File;

public class FolderUtil {
	
	public static boolean CreateFolder(String folderPath){
		File file = new File(folderPath);
		if  (!file.exists()  && !file.isDirectory())      
		{        
			file.mkdirs();
			System.out.println("文件夹创建成功！");
			System.out.println(file.getAbsolutePath());//获取绝对路径  
			return true;
		} else   
		{  
		    System.out.println(folderPath+" 已存在");
		    return false;
		}   
	}
	
}
